Function Local Variables

Local variables are created each time the function is invoked. Each local variable is initially UNDEFINED. When execution has left the function, the local variables are destroyed. If you wish to write function(s) to serve as often used utilities or libraries, then care should be taken to declare all variables (other than function arguments) as local. Declaring all function variables as local will prevent accidental destruction of user's global variables.